home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / Developer University / DU Projects / Idling / Sources / Frame.h < prev    next >
Encoding:
Text File  |  1996-08-22  |  1.4 KB  |  45 lines  |  [TEXT/CWIE]

  1. //    Release Version:    $ ODF 2 $
  2. //    Copyright:            (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  3.  
  4. #ifndef FRAME_H
  5. #define FRAME_H
  6.  
  7. //=======================================================================
  8. // ----- Framework Includes -----
  9. #ifndef FWFRAME_H
  10. #include <FWFrame.h>        // FW_CFrame
  11. #endif
  12.  
  13. //=======================================================================
  14. class CIdlingPart;
  15. class FW_CRegionShape;
  16.  
  17. //=======================================================================
  18. class CIdlingFrame : public FW_CFrame {
  19. public:
  20.     FW_DECLARE_AUTO(CIdlingFrame)
  21.                         CIdlingFrame(Environment* ev, 
  22.                                     ODFrame* odFrame, 
  23.                                     FW_CPresentation* presentation, 
  24.                                     CIdlingPart* idlingPart);
  25.     virtual             ~CIdlingFrame();
  26. // overrides
  27.     virtual void        Draw(Environment *ev, 
  28.                              ODFacet* odFacet, 
  29.                              ODShape* invalidShape);
  30.     virtual FW_Handled    DoMouseDown(Environment* ev, const FW_CMouseEvent& theMouseEvent);
  31.     virtual ODShape*     AdjustUsedShape(Environment* ev, ODShape* suggestedUsedShape);
  32.     virtual ODShape*     AdjustActiveShape(Environment* ev, ODFacet* facet, ODShape* suggestedActiveShape);
  33. // new members
  34.     virtual void        MyToggleColor(); 
  35. protected:
  36.     virtual FW_CRegionShape*     MyCreateRegionShape(Environment* ev);
  37. private:
  38.     CIdlingPart*         fIdlingPart;
  39.     FW_CRegionShape*    fRegionShape;
  40.     FW_Boolean            fDrawRed;
  41. };
  42.  
  43. //=======================================================================
  44. #endif
  45.